package com.dongdong.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.dongdong.mapper.TbProvincesMapper;
import com.dongdong.pojo.TbProvinces;
import com.dongdong.service.ProvincesService;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Deacription TODO
 * @Author Lenovo
 * @Date 2020/12/22 17:06
 * @Version 1.0
 **/
@Service
@Component
public class ProvincesServiceImpl implements ProvincesService {

    @Resource
    private TbProvincesMapper tbProvincesMapper;

    @Override
    public List<TbProvinces> getProvinces() {
        return tbProvincesMapper.selectByExample(null);
    }
}

